package com.dmlll.service.impl;

import com.dmlll.dao.CountyMapper;
import com.dmlll.pojo.County;
import com.dmlll.service.CountyService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class CountyServiceImpl implements CountyService{

    @Autowired
    private CountyMapper countyMapper;


    @Override
    public List<County> selectCounty(String code) {
        return countyMapper.selectCounty(code);
    }

    @Override
    public String findCountyByName(String name,String cityCode) {
        return countyMapper.selectCodeByName(name,cityCode);
    }
}
